<template>
	<view class="content">
		<view class="header">
			<view :style="{height: systemBarHeight + 'px'}">

			</view>
			<view class="navbar">
				<text>考 试</text>
			</view>

			<view class="date">
				<view class="date_lf">
					<image src="/static/jl/riqi.png" mode=""></image>
					<text>选择时间</text>
				</view>
				<view class="date_rg">
					<picker mode="date" @change="datechange">
						<view class="date1">
							<text>{{date ||'请选择日期'}}</text>
							<image src="/static/xy/ck1.png" mode=""></image>
						</view>
					</picker>
				</view>
			</view>
		</view>

		<view class="list">
			<view class="list_item">
				<view class="km">
					<text>科目二</text>
				</view>
				<view class="item_id">
					<text>小明 | 15012345678</text>
				</view>
				
				<view class="shijian">
					<image src="/static/xy/shijian.png" mode=""></image>
					<text>2025-01-01 10:00 至 2025-01-01 10:00</text>
				</view>
				<view class="item_car">
					<text>2号车</text>
				</view>
				<view class="cifrom">
					<view class="bt">
						<text>已完成</text>
					</view>
				</view>
			</view>
		
		</view>
	</view>
</template>

<script>
	export default {
		name: 'record',
		data() {
			return {
				systemBarHeight: 0,
				date: ''
			}
		},

		mounted() {
			/* 手机顶部高度 */
			this.getSysteminfo()
		},
		methods: {
			/* 手机顶部高度 */
			getSysteminfo() {
				uni.getSystemInfo({
					success: res => {
						this.systemBarHeight = res.statusBarHeight;
					}
				});
			},
			datechange(e) {

				this.date = e.detail.value
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		width: 750rpx;
		height: 1624rpx;
		background: #F5F5F5;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.header {
		background: #ffffff;
	}

	.navbar {
		height: 88rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		font-family: PingFang SC, PingFang SC;
		font-weight: 600;
		font-size: 34rpx;
		color: #43484D;
	}

	.date {
		width: 93%;
		margin: auto;
		height: 90rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;

		.date_lf {
			display: flex;
			align-items: center;

			>image {
				width: 40rpx;
				height: 40rpx;
			}

			text {
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 30rpx;
				color: #43484D;
			}
		}

		.date_rg {

			.date1 {
				display: flex;
				align-items: center;

				>image {
					width: 24rpx;
					height: 24rpx;
				}

				>text {
					margin-right: 36rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					font-size: 28rpx;
					color: #5C5C5C;

				}
			}
		}
	}

	.list {
		padding-top: 32rpx;

		.list_item {
			width: 93%;
			margin: 0 auto 16rpx;
			padding-bottom: 32rpx;
			background: #FFFFFF;
			border-radius: 16rpx 16rpx 16rpx 16rpx;
			position: relative;

			.km {
				width: 94rpx;
				height: 60rpx;
				background-image: url("");
				background-size: 94rpx 60rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 24rpx;
				color: #FFFFFF;
				display: flex;
				align-items: center;
				justify-content: center;
				border-radius: 0rpx 16rpx 0rpx 0rpx;
				position: absolute;
				right: 0rpx;
			}
			
			.item_id{
				width: 90%;
				margin: auto;
				padding-top: 28rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 500;
				font-size: 32rpx;
				color: #43484D;
			}
			.shijian{
				width: 90%;
				margin: 24rpx auto 0;
				display: flex;
				align-items: center;
				>image{
					width: 32rpx;
					height: 32rpx;
				}
				>text{
					height: 32rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 28rpx;
					color: #43484D;
					margin-left: 16rpx;
				}
			}
			.item_car{
				width: 90%;
				margin: 24rpx auto 0;
				font-family: PingFang SC, PingFang SC;
				font-weight: 500;
				font-size: 28rpx;
				color: #219FFF;
			}
			.cifrom{
				width: 90%;
				margin: 24rpx auto 0;
				.bt{
					width: 144rpx;
					height: 60rpx;
					background: #53DDA8;
					border-radius: 8rpx 8rpx 8rpx 8rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 28rpx;
					color: #FFFFFF;
					display: flex;
					align-items: center;
					justify-content: center;
					margin-left: auto;
				}
			}
		}
	}
</style>